package com.lrkj.back.mapper;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.TbPackageProduct;
import org.apache.ibatis.annotations.Param;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;

public interface TbPackageProductMapper extends DBInterface<TbPackageProduct> {

	List<TbPackageProduct> selectByPackageId(@Param("packageId")String packageId) throws DBException;
	
	int deleteByPackageId(@Param("packageId")String packageId) throws DBException;

	List<TbPackageProduct> queryProductListByDepIds(Map<String, Object> map) throws DBException;

	List<TbPackageProduct> findAllDetais(Map<String, Object> map) throws DBException;

	List<TbPackageProduct> findAllPackageProduct(Map<String,Object> map) throws DBException;

	int deleteByPackageQixieMuban(TbPackageProduct st) throws DBException;

	void updateQixieMun(TbPackageProduct st) throws DBException;
	
	int insertBatch(List<TbPackageProduct> list) throws DBException;

	int selectNumByPackageId(String packageId) throws  DBException;
}